WooCommerce\PayPalCommerce\Button\Assets\SmartButton D

Total Complexity 193
Dependencies 19
Dependents 0
Total lines 1,099
Lines of code 685
Logical lines of code 245
Comment lines 277
Methods 32
Properties 14

Methods 32

Method Rating Maintainability Complexity Lines of code
message_values()
C
35 28 82
url()
B
41 23 46
render_wrapper()
B
38 18 70
localize_script()
A
34 10 95
render_button_wrapper_registrar()
A
43 12 57
load_button_component()
A
50 13 34
render_message_wrapper_registrar()
A
44 10 53
enqueue()
A
48 11 36
context()
S
58 7 16
style_for_context()
S
54 6 20
dcc_is_enabled()
S
57 6 19
button_renderer()
S
57 6 17
can_save_vault_token()
S
66 5 9
can_render_dcc()
S
74 5 4
components()
S
62 4 13
has_subscriptions()
S
63 4 12
dcc_renderer()
S
59 3 14
get_3ds_contingency()
S
67 3 9
payerData()
S
68 3 7
normalize_height()
S
68 3 9
__construct()
S
58 1 16
bn_code_for_context()
S
74 2 4
mini_cart_button_renderer_hook()
S
72 1 6
pay_order_renderer_hook()
S
79 1 3
single_product_renderer_hook()
S
79 1 3
proceed_to_checkout_button_renderer_hook()
S
72 1 6
attributes()
S
74 1 5
checkout_dcc_button_renderer_hook()
S
79 1 3
checkout_button_renderer_hook()
S
79 1 3
bn_codes()
S
68 1 8
message_renderer()
S
82 1 3
is_cart_price_total_zero()
S
80 1 3